*********************************
***  Trump paper - Table 1
*** Created: 31/10/2020
*** Last updated: 21/05/2021
clear all
set scheme plottig
 

	local user = 1		/* user 1 = sergi, user 2 = Anja */

	if `user' == 1 {			// input relevant file path as per your computer

		global		main "/Users/aneundorf/Dropbox/Project_Populism/BA project/Analysis/Trump_Replication files/"
		global 		graphs 			"${main}Graphs/"
		global 		results			"${main}Results/"
	}

cd "${main}"
use "Data/US_data_recoded.dta", clear

global controls_all female age01 educ2 educ3 dom2 dom3 dom4 ethnic2 ethnic3 ethnic4 relig3 relig2
global controls i.ethnic i.religion


**-----------------------------	
*Table 1

capture erase "${results}Results_table1.xls"
capture erase "${results}Results_table1.txt"

reg trump_vsbiden ib4.Group  $controls
		estimates store M1_vote
			outreg2  using "${results}Results_table1.xls", ///
			bracket bdec(3) sdec(3) append

reg trump_vsbiden ib4.Group  $controls_all
		estimates store M1_vote
			outreg2  using "${results}Results_table1.xls", ///
			bracket bdec(3) sdec(3) append

reg trump_feeling ib4.Group  $controls
		estimates store M1_trump
			outreg2  using "${results}Results_table1.xls", ///
			bracket bdec(3) sdec(3) append	

			
reg trump_feeling ib4.Group  $controls_all
		estimates store M1_trump
			outreg2  using "${results}Results_table1.xls", ///
			bracket bdec(3) sdec(3) append	

reg biden_feeling ib4.Group $controls
		estimates store M1_biden
			outreg2  using "${results}Results_table1.xls", ///
			bracket bdec(3) sdec(3) append	

reg biden_feeling ib4.Group $controls_all
		estimates store M1_biden
			outreg2  using "${results}Results_table1.xls", ///
			bracket bdec(3) sdec(3) append	
